<%@ page contentType="text/html; charset=UTF-8" language="java"
	pageEncoding="UTF-8"%>
<%@ include file="/corp/include/taglibs.jsp"%>
<style type="text/css">
	<!--
.displaystrong{
font-weight:600;

}
#Layer1 {
	position:absolute;
	left:86px;
	top:35px;
	width:23px;
	height:23px;
	z-index:1;
	font-weight:600;
	font-size:12px;
	
}
#Layer2 {
	position:absolute;
	left:80px;
	top:145px;
	width:700px;
	height:350px;
	z-index:2;
	background:#F4FAFC;
	display:none;
	cursor:hand;
}
#Layer3 {
	position:absolute;
	left:80px;
	top:145px;
	width:700px;
	height:350px;
	z-index:2;
	background:#F4FAFC;
	display:none;
	cursor:hand;
}
#uploaddiv {
	position:absolute;
	left:80px;
	top:145px;
	width:700px;
	height:350px;
	z-index:2;
	background:#F4FAFC;
	
	cursor:hand;
}
#seachcontent {
	position:absolute;
	left:80px;
	top:145px;
	width:700px;
	height:350px;
	z-index:2;
	background:#F4FAFC;
	display:none;
	cursor:hand;
}
.STYLE4 {font-size: 10pt}
.tb_1 {
	BACKGROUND-COLOR: #ffffff
}
/*普通标题*/
.h3
  {
  font-size:12px; 

  color: #303030;
 }
/*文字*/
.h4
 {
 font-weight:200;font-size:13px;cursor:pointer;
}
.h5 
 {
  font-size:13px;color: #B84F01; 

}

.STYLE2 {
	font-size: 9pt;
	position: relative;
	bottom: -4px;
	
}
	-->
	</style>
<script>
 function displaycontent(publicationid){ 
 document.getElementById("Layer2").style.display="block";
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  document.getElementById("Layer2").innerHTML=document.getElementById(publicationid).innerHTML;
}
function closeSelf(flag){
   document.getElementById("Layer3").style.display="none";
  document.body.scroll="auto";
  if(flag==true)
  {    
  if(typeof(turnpageflag)!="undefined") turnpageflag=3; 
  
  var tempaddrobjnext=document.getElementById("orderbynextpageid");//下一页




  var tempaddrobjlast=document.getElementById("orderbylastpageid");//上一页




   if(tempaddrobjnext!=null||tempaddrobjlast!=null){
  var tempaddrnext=tempaddrobjnext!=null?tempaddrobjnext.href:null;	  
  var tempaddrlast=tempaddrobjlast!=null?tempaddrobjlast.href:null; 
  var str=null,tempstr=null;  
  if(tempaddrnext!=null)
    {
    str=tempaddrnext.substring(tempaddrnext.indexOf("(")+1,tempaddrnext.indexOf(","))-1;
    tempstr=tempaddrnext.substring(tempaddrnext.indexOf(":")+1);
     
    }
  else if(tempaddrlast!=null) 
  {
  str=tempaddrlast.substring(tempaddrlast.indexOf("(")+1,tempaddrlast.indexOf(","))+1;
  tempstr= tempaddrlast.substring(tempaddrlast.indexOf(":")+1);  
  }  

  tempstr=tempstr.substring(0,tempstr.indexOf("(")+1)+str+tempstr.substring(tempstr.indexOf(","));  
  eval(tempstr+";");   
     
  }
  else
  {
   // document.location.reload();
   document.publicationForm.submit();
  }
  
  }
  }
function closelayer(flag){
  document.getElementById("Layer2").style.display="none";
  document.body.scroll="auto";
  if(flag==true)
  {    
  if(typeof(turnpageflag)!="undefined") turnpageflag=3; 
  
  var tempaddrobjnext=document.getElementById("orderbynextpageid");//下一页




  var tempaddrobjlast=document.getElementById("orderbylastpageid");//上一页




   if(tempaddrobjnext!=null||tempaddrobjlast!=null){
  var tempaddrnext=tempaddrobjnext!=null?tempaddrobjnext.href:null;	  
  var tempaddrlast=tempaddrobjlast!=null?tempaddrobjlast.href:null; 
  var str=null,tempstr=null;  
  if(tempaddrnext!=null)
    {
    str=tempaddrnext.substring(tempaddrnext.indexOf("(")+1,tempaddrnext.indexOf(","))-1;
    tempstr=tempaddrnext.substring(tempaddrnext.indexOf(":")+1);
     
    }
  else if(tempaddrlast!=null) 
  {
  str=tempaddrlast.substring(tempaddrlast.indexOf("(")+1,tempaddrlast.indexOf(","))+1;
  tempstr= tempaddrlast.substring(tempaddrlast.indexOf(":")+1);  
  }  

  tempstr=tempstr.substring(0,tempstr.indexOf("(")+1)+str+tempstr.substring(tempstr.indexOf(","));  
  eval(tempstr+";");   
     
  }
  else
  {
   // document.location.reload();
   document.publicationForm.submit();
  }
  
  }
}
//修改
function modify(url){ 
 document.body.scroll="no";
  document.getElementById("Layer2").style.display="block";
// alert(url);
  document.getElementById("Layer2").style.top=0+document.body.scrollTop;
  document.getElementById("Layer2").style.left=0+document.body.scrollLeft;
   document.getElementById("Layer2").style.width="100%";
    document.getElementById("Layer2").style.height="100%"
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
// 删除
function deletethis(url){
 document.body.scroll="no";
    document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//编辑电子书内容







function editpuborder(url){
 document.body.scroll="no";
document.getElementById("Layer2").style.display="block";
// alert(url);
  document.getElementById("Layer2").style.top=0+document.body.scrollTop;
  document.getElementById("Layer2").style.left=0+document.body.scrollLeft;
   document.getElementById("Layer2").style.width="100%";
    document.getElementById("Layer2").style.height="100%"
  var str="<iframe   name=\"editpubiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str; 

}
//添加电子书内容







function addcontent(url){
 document.body.scroll="no";
  document.getElementById("Layer3").style.display="block";
// alert(url);
  document.getElementById("Layer3").style.top=20+document.body.scrollTop;
  document.getElementById("Layer3").style.left=20+document.body.scrollLeft;
   document.getElementById("Layer3").style.width=740;
    document.getElementById("Layer3").style.height=450;
  var str="<iframe   name=\"editpubiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer3").innerHTML=str; 
}
function geturl(){
var str=document.getElementsByName("pubid");
var string="";
if(str.length>0)
for(var i=0;i<str.length;i++){
  if(document.getElementsByName("pubid")[i].checked==true){
    string+=str[i].value;
  }
}
return string;
}

//添加电子书ocx内容



function addocxcontent(backurl,url){
	if(window.ActiveXObject){
		try{
			document.getElementById("photoupload").ShowUploadDlg();
			//alert('OKKKK');
			window.location = backurl;
		}
		catch(e){
			// actions When Blocked
		}
	}
	else{
		// actions When Not Support
	}

}

//以下是控制层的拖动







self.onError=null;                              
currentX = currentY = 0;                               
whichIt = null;                                         
lastScrollX = 0; lastScrollY = 0;                              
NS = (document.layers) ? 1 : 0;                             
IE = (document.all) ? 1: 0;                              
<!-- STALKER CODE -->                              
function heartBeat() {                              
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }                             if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }           
if(diffY != lastScrollY) {            
percent = .1 * (diffY - lastScrollY);    
if(percent > 0) percent = Math.ceil(percent); 
else percent = Math.floor(percent);  
if(IE) document.all.Layer2.style.pixelTop += percent;  
if(NS) document.Layer2.top += percent;                 
lastScrollY = lastScrollY + percent;      
}                       
if(diffX != lastScrollX) {       
percent = .1 * (diffX - lastScrollX);     
if(percent > 0) percent = Math.ceil(percent);       
else percent = Math.floor(percent);                   
if(IE) document.all.Layer2.style.pixelLeft += percent;        
if(NS) document.Layer2.left += percent;       
lastScrollX = lastScrollX + percent;                     
}	                          
}                         
<!-- /STALKER CODE -->              
<!-- DRAG DROP CODE -->              
function checkFocus(x,y) {         
stalkerx = document.Layer2.pageX;     
stalkery = document.Layer2.pageY;                        
stalkerwidth = document.Layer2.clip.width;              
stalkerheight = document.Layer2.clip.height;                         
if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;                      
else return false;        
}                     
function grabIt(e) {            
if(IE) {                            
whichIt = event.srcElement; 
while (whichIt.id.indexOf("Layer2") == -1) {    
whichIt = whichIt.parentElement;                           
if (whichIt == null) { return true; }         
 }                            
whichIt.style.pixelLeft = whichIt.offsetLeft;                              
whichIt.style.pixelTop = whichIt.offsetTop;                          
currentX = (event.clientX + document.body.scrollLeft);                       
currentY = (event.clientY + document.body.scrollTop); 	                      
} else {                             
window.captureEvents(Event.MOUSEMOVE);    
if(checkFocus (e.pageX,e.pageY)) {                            
whichIt = document.Layer2;                              
stalkerTouchedX = e.pageX-document.Layer2.pageX;      
StalkerTouchedY = e.pageY-document.Layer2.pageY;          
}                              
}                            
return true;                        
}                            
function moveIt(e) {               
if (whichIt == null) { return false; }       
if(IE) {                             
newX = (event.clientX + document.body.scrollLeft);                           
newY = (event.clientY + document.body.scrollTop);                
distanceX = (newX - currentX);    distanceY = (newY - currentY);   
currentX = newX;    currentY = newY;                       
whichIt.style.pixelLeft += distanceX;                          
whichIt.style.pixelTop += distanceY;                      
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;    if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft; if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;  
event.returnValue = false;  
} else {   
whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY); 
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset; 
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;  
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17; 
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17; 
return false;} 
return false;  
}   
function dropIt() {     
whichIt = null;     
if(NS) window.releaseEvents (Event.MOUSEMOVE);  
return true;             
	}                     
<!-- DRAG DROP CODE -->  
if(NS) {    
window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
window.onmousedown = grabIt;
window.onmousemove = moveIt; 
window.onmouseup = dropIt; 
}              
if(IE) {                     
document.onmousedown = grabIt;    
document.onmousemove = moveIt;   
document.onmouseup = dropIt;          
	}                         
if(NS || IE) action = window.setInterval("heartBeat()",1);   


function selectall(thisid){
  var str=document.getElementsByName("pubid");
  //alert(document.getElementById(thisid).checked);
  if(document.getElementById(thisid).checked==true)
  for(var i=0;i<str.length;i++){
   document.getElementsByName("pubid")[i].checked=true;
 }
 else
 {
 for(var i=0;i<str.length;i++){
   document.getElementsByName("pubid")[i].checked=false;
 }
 }
 }
//多项选择删除
function moreselectdelete(){
 document.body.scroll="no";
var url='${ctx }/corp/publication.do?m=listmoredelete';                 

url+=geturl();
document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}

//还原
function restyle(url){ 
 document.body.scroll="no";
     document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
// 彻底删除
function realdelete(url){
 document.body.scroll="no";
    document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//多项选择还原
function morerestyle(){
 document.body.scroll="no";
var url="";
 <c:if test="${publicationForm.flag==0}">
    url='${ctx }/corp/publication.do?m=morerecyclerecover';                 
</c:if>
<c:if test="${publicationForm.flag==1}">
url='${ctx }/corp/publication.do?m=recovercontentbypubid&flag=1';                 
 </c:if> 
url+=geturl();
document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//多项选择删除
function morerealdelete(){
 document.body.scroll="no";
var url="";
 <c:if test="${publicationForm.flag==0}">
    url='${ctx }/corp/publication.do?m=morerecycledelete';                 
</c:if>
<c:if test="${publicationForm.flag==1}">
url='${ctx }/corp/publication.do?m=deletecontentbypubid&flag=1';                 
 </c:if> 
url+=geturl();
document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145+document.body.scrollTop;
  document.getElementById("Layer2").style.left=60+document.body.scrollLeft;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//获得内容
function getcontent(url){
 document.body.scroll="no";

document.getElementById("Layer2").style.display="block";
// alert(url);
  document.getElementById("Layer2").style.top=0+document.body.scrollTop;
  document.getElementById("Layer2").style.left=0+document.body.scrollLeft;
   document.getElementById("Layer2").style.width="100%";
    document.getElementById("Layer2").style.height="100%"
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//搜索
function search(){
 document.getElementById("seachcontent").style.display="block";
   document.getElementById("seachcontent").style.top=document.body.clientHeight/2+document.body.scrollTop-50;
  document.getElementById("seachcontent").style.left=document.body.clientWidth/2+document.body.scrollLeft-200;
   document.getElementById("seachcontent").style.width=400;
   document.getElementById("seachcontent").style.height=100;
   document.getElementById("keyword").focus();
  // var str=document.getElementById("seachcontent").innerHTML;
   
 // document.getElementById("Layer2").innerHTML=str;
}
//控制图片放大显示
function showpic(src){
   document.getElementById("Layer2").style.display="block";
   document.getElementById("Layer2").style.top=event.clientY+document.body.scrollTop-80;
   document.getElementById("Layer2").style.left=event.clientX+document.body.scrollLeft+30;
   document.getElementById("Layer2").style.width=120;
   document.getElementById("Layer2").style.height=170;
   var str="<table border=\"1\" bordercolor=\"#666666\"><tr><td><img src=\""+src+"\" height=\"170\" width=\"120\"></td></tr></table>";
   document.getElementById("Layer2").innerHTML=str;
}
function normalclose(layer){
document.getElementById(layer).style.display='none';
}
</script>
<div id="seachcontent" style="display:none">
<table id="Table_01"  style="width:400"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="9" height="23" align="left" valign="top">
			<img src="${ctx}/corp/images/tsc_01.gif" width="9" height="23" alt=""></td>
		<td width="400" valign="middle"  height="23" background="${ctx}/corp/images/tsc_02.gif"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="2%" valign="middle"><img src="${ctx}/images/corp/tsc_05.gif" width="14" height="15"></td>
            <td width="21%" valign="middle"> &nbsp;搜索电子书 </td>
            <td width="71%">&nbsp;</td>
            <td width="6%" valign="top"  align="right"><a href="javascript:normalclose('seachcontent');"><img src="${ctx}/images/corp/tsc_10.gif" border="0" width="34" height="13"/></a></td>
          </tr>
        </table></td>
		<td width="6" align="right" valign="top">
			<img src="${ctx}/images/corp/tsc_03.gif" width="6" height="23" alt=""></td>
	</tr>
	<tr>
		<td height="9" align="left" background="${ctx}/images/corp/tsc_04.gif"> </td>
		<td width="400" valign="middle" bgcolor="#F0F0F0">
		<table width="94%"  border="0" align="center" cellpadding="0" cellspacing="0">
		   <tr>
            <td height="23"  align="center"> </td>
          </tr>
          <tr>
            <td height="23"  align="center">  关键字：&nbsp;&nbsp;
      
            <input type="text" id="keyword" name="keyword"/>&nbsp;&nbsp;&nbsp;
            <input type='button' value='搜索' onclick="document.getElementsByName('key')[0].value=document.getElementById('keyword').value;document.publicationForm.submit();"/></td>
          </tr>
        
          <tr>
            <td><table width="400" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="155" height="25">&nbsp;</td>
                <td width="95" height="25">&nbsp;</td>
                <td width="400" height="25">&nbsp;</td>
              </tr>
            </table> </td>
          </tr>
        </table>
		
		</td>
		<td height="6" align="right" background="${ctx}/images/corp/tsc_06.gif"> </td>
	</tr>
	<tr>
		<td align="right" valign="bottom">
			<img src="${ctx}/images/corp/tsc_07.gif" width="9" height="5" alt=""></td>
		<td height="5" valign="bottom" background="${ctx}/images/corp/tsc_08.gif"> </td>
		<td width="6" height="5" align="right" valign="bottom">
			<img src="${ctx}/images/corp/tsc_09.gif" width="6" height="5" alt=""></td>
	</tr>
</table>

</div>		
